import hx.display.BitmapLabel;
import hx.display.FPS;
import hx.display.Image;
import hx.assets.Assets;
import hx.display.Stage;

class GameStage extends Stage {
	override function onStageInit() {
		super.onStageInit();
		// 代码开始的地方...
		var assets = new Assets();
		assets.loadFnt("assets/Unnamed.png", "assets/Unnamed.fnt");
		assets.onComplete((a) -> {
			trace("加载完成");
			var fnt = new BitmapLabel(a.getAtlas("Unnamed"));
			this.addChild(fnt);
			fnt.x = fnt.y = 300;
			fnt.data = "Hello World! Hurt number is 90324454323.";
			fnt.scaleX = fnt.scaleY = 0.5;
		});
		assets.start();
	}
}
